import styled from 'styled-components'

const NavBarWrapper = styled.div `
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    width: 100%;
    height: .46rem;
    line-height: 0.22rem;
    padding: 0 .2rem;
    position: ${props => props.fixed ? 'fixed' : 'relative'};
    top: 0;
    left: 0;
    background-color: #fff;
    text-align: center;
`
const NavBar = styled.div `
    position: absolute;
    display: flex;
    top: 0;
    bottom: 0;
    align-items: center;
    padding: 0 .16rem;
    font-size: .16rem;
    cursor: pointer;
    span {
        font-size: 0.14rem;
        color: #2984F8;
        cursor: pointer;
    }
`
const NavBarLeft = styled(NavBar) `
    left: 0;

`
const NavBarTitle = styled.div `
    margin: 0 auto;
    color: #323233;
    font-weight: 500;
    font-size: .16rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
`

const  NavBarRight = styled(NavBar) `
    right: 0;
`

export {
    NavBarWrapper,
    NavBarLeft,
    NavBarTitle,
    NavBarRight
}